const reuiqreContext = require.context('./define', true, /skill\.js$/);

const SkillModules = {};

reuiqreContext.keys().forEach((key) => {
  const mod = reuiqreContext(key);
  let name  = key.slice(2);
  name = name.slice(0, name.length - 9);
  SkillModules[name] = (mod.__esModule && mod.default ? mod.default : mod);
});

module.exports = SkillModules;